package game;

import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Rectangle;

class Opening extends Scene
{
	Background bg1;
	float time = 0, timeMax = 4;
	
	public Opening()
	{
		bg1 = new Background(31);
	}

	public void update()
	{
		time += Time.getInstance().getLoopTime();
		if(time >= timeMax)
			SceneManager.changeScene(0);
	}
	
	public void draw(Graphics2D g2d)
	{
		g2d.setColor(Color.BLACK);
		g2d.fillRect(0, 0, Game.screenWidth, Game.screenHeigth);
		
			this.bg1.draw(g2d);
		
			
	
		
		
			
		
	}
}
